from django.urls import path,include
from .views import SmsCodesAPIView,CreateUserView,ImageUploadViewForAvatar,\
    ImageUploadViewForCKEditor,UserlableAPIView
from rest_framework_jwt.views import obtain_jwt_token
urlpatterns = [
    # 发送短信
    path('sms_codes/<mobile>/',SmsCodesAPIView.as_view()),
    # 注册
    path('users/',CreateUserView.as_view()),
    # 擅长技能
    path('user/label/',UserlableAPIView.as_view()),
    # 1.使用 drf-jwt 实现返回token的登录功能
    path('authorizations/', obtain_jwt_token),
    # 上传图片  POST
    path('upload/avatar/', ImageUploadViewForAvatar.as_view()),
    # 前端富文本编辑器上传图片 POST
    path('upload/common/', ImageUploadViewForCKEditor.as_view()),
]
